From 43c44b436d438416a718bd62962c4bfd911cc6bb Mon Sep 17 00:00:00 2001 From: "smh22@firebug.cl.cam.ac.uk" Date: Fri, 13 May 2005 18:20:40 +0000 Subject: [PATCH] bitkeeper revision 1.1389.1.60 (4284eff8xPCiJXQdVwPYSYL7MEB5zA) fix calls to xc_domain_getinfo() Signed-off-by: Steven Hand --- tools/libxc/xc_core.c | 2 +- tools/libxc/xc_linux_save.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index 2d6b7d0fa2..8439d13119 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -48,7 +48,7 @@ xc_domain_dumpcore(int xc_handle, goto error_out; } - if (xc_domain_getinfo(xc_handle, domid, 1, &info)) { + if (xc_domain_getinfo(xc_handle, domid, 1, &info) != 1) { PERROR("Could not get info for domain"); goto error_out; } diff --git a/tools/libxc/xc_linux_save.c b/tools/libxc/xc_linux_save.c index 17000d668e..7c7415e831 100644 --- a/tools/libxc/xc_linux_save.c +++ b/tools/libxc/xc_linux_save.c @@ -333,9 +333,9 @@ int suspend_and_state(int xc_handle, XcIOContext *ioctxt, retry: - if ( xc_domain_getinfo(xc_handle, ioctxt->domain, 1, info) ) + if ( xc_domain_getinfo(xc_handle, ioctxt->domain, 1, info) != 1) { - xcio_error(ioctxt, "Could not get full domain info"); + xcio_error(ioctxt, "Could not get domain info"); return -1; } @@ -447,9 +447,9 @@ int xc_linux_save(int xc_handle, XcIOContext *ioctxt) return 1; } - if ( xc_domain_getinfo(xc_handle, domid, 1, &info) ) + if ( xc_domain_getinfo(xc_handle, domid, 1, &info) != 1) { - xcio_error(ioctxt, "Could not get full domain info"); + xcio_error(ioctxt, "Could not get domain info"); goto out; } if ( xc_domain_get_vcpu_context( xc_handle, domid, /* FIXME */ 0, -- 2.30.2